#!/usr/bin/env python
#coding:utf-8
import sys
import urllib2
import urllib

url = 'http://www.google.com.hk/'
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT'

values = {'hl'    : 'zh_CN',
          'source': 'hp',
          'biw'   : '1440',
          'bih'   : '480',
          'q'     : 'ubuntu',
          'aq'    : 'f',
          'aqi'   : 'g10'
          }
data = urllib.urlencode(values)
headers = {'User-Agent': user_agent}
req = urllib2.Request(url, data, headers)
response = urllib2.urlopen(req)
the_path = response.read()

print the_page
